Skip to content

Conversation

mayswind
Copy link
Contributor

Hi,
I found the latest code only supports the specific decorations for unified JVM logging. If other decorations are configured (e.g. -Xlog:safepoint=trace,class*=info,age*=trace,gc*=info,gc+heap=trace:file=../gclogs/gc.log:time,pid,tid,level,tags:filecount=0), the app would fail to load the logs. I modified the relevant code to support all decorations. Additionally, I make the GCEvent can getting the time from any one decoration.

Furthermore, I find if the app load the log which contains oom logs, a large number of warning messages would be printed. I think the app should ignore it, so I add this tag to the exclude list.

Repository owner deleted a comment from awesomefly Apr 26, 2023
@chewiebug
Copy link
Owner

chewiebug commented Jun 7, 2023 via email

@mayswind
Copy link
Contributor Author

mayswind commented Jun 9, 2023

Hi Thank you very much for your contribution! It looks good. Would you have time to add some more unittests for the method DataReaderUnifiedJvmLogging#createGcEventWithStandardDecorators()? It has quite a lot of ifs that have no unittest to make sure, the logic will not break during future refactorings. Best regards Jörg

Hi, I have added more unit tests, and now the unit tests can cover the new logic.

@chewiebug chewiebug merged commit 3c2b290 into chewiebug:develop Feb 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants